<?php
$name = isset($data->ln->name) ? $data->ln->name : $data->name;
$anons = isset($data->ln->anons) ? $data->ln->anons : $data->anons;
$text = isset($data->ln->text) ? $data->ln->text : $data->text;
$this->pageTitle=isset($data->metatitle) ? $data->metatitle : Yii::app()->name . ' - '. $name;

$this->breadcrumbs	=array(
	$data->category->name => Yii::app()->createUrl('content/index', array('category'=>$data->category->alias)),
	$name,
);
$this->widget('application.components.widgets.EFancyBox', array('target'=>'a.fancybox'));
?>
<h1><?php echo $name; ?></h1>
<div class="contentText">
	<?php if($anons): ?>
		<p class="anons">
			<?php if($data->file!=NULL): ?>
				<a href="<?php echo $data->file;?>" class="d_b fl_l fancybox" title="<?php echo $name; ?>">
					<?php echo $this->material_image(0, $data->file, '150'); ?>
				</a>
			<?php endif; ?>
			<?php echo $anons; ?>
		</p>
	<?php endif; ?>
	<?php echo $text ?>
</div>
<?php 
    $this->widget('ext.likesBtns.likeBtnsWidget');
?>
<?php if($data->type_id==3): ?>
<?php 
	$this->widget('application.components.widgets.SimilarNews', array('category'=>$data->category_id));
?>
<?php endif; ?>
